GBML manual / Drawing

draw_effect_stop

Pictures and bars are drawn plainly again from here. Use it to keep the next draw call plain after one that wears an effect. It does nothing when no effect is chosen.

Works differently on Game Boy - Pictures drawn between draw_effect_start and draw_effect_stop wear the sprite effect as sprite_effect_start plays it here. A bar or box (draw_rect, draw_rect_fill) wears only its Tint, and only when a sprite palette is free. Up to 8 effects at once.

Works differently on Game Boy Color - Pictures drawn between draw_effect_start and draw_effect_stop wear the sprite effect as sprite_effect_start plays it here. A bar or box (draw_rect, draw_rect_fill) wears only its Tint, and only when a sprite palette is free. Up to 8 effects at once.

Sega Genesis: not built yet - The Sega Genesis will draw effects its own way.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

draw_effect_stop()

Returns

Nothing.

Description

Pictures and bars are drawn plainly again from here. Use it to keep the next draw call plain after one that wears an effect started with draw_effect_start. It does nothing when no effect is chosen.

It closes the brackets and does not end the effect: the effect's clock keeps going if draw_effect_start is called for it again in the next frame.

Example

draw_effect_stop();
draw_sprite(spr_doc_glow, 40, 8, 0);

The picture is drawn in its own colors.

On the GBA

It closes the brackets and does not end the effect: the effect’s clock keeps going if draw_effect_start is called for it again in the next frame.

See also: Overlay effects - screen effects you make yourselfdraw_effect_starttext_effect_stopsprite_effect_stop